<template>
  <div>
    <button @click="comName='UserAccount'">用户账户</button>
    <button @click="comName='UserInfo'">用户信息</button>
    <!-- <user-account v-if="comName === 'UserAccount'"/>
    <user-info v-else/>  -->
    <component :is='comName'/>
     </div>
</template>

<script>
import UserAccount from './components/UserAccount.vue'
import UserInfo from './components/UserInfo.vue'


export default {
  components: { UserInfo, UserAccount},
  

data(){
  return{
    comName:'UserAccount'
  }
},


}
</script>

<style>

</style>